<template>
	<view class="container">
			<view>
				<button class="btn" @tap="staticInfo">今日分析</button>
			</view>
			<view>
				<button class="btn" @tap="staticHisInfo">历史分析</button>
			</view>
		<view>
			<button class="btn" @tap="managerOrder">订单管理</button>
		</view>
    <view>
      <button class="btn" @tap="managerGood">商品管理</button>
    </view>
	<view>
	  <button class="btn" @tap="managerShop">店铺管理</button>
	</view>
		<view>
			<button class="btn" @tap="bindPrint">绑定打印机</button>
		</view>
		<view>
			<button class="btn" @tap="changeUser">切换用户</button>
		</view>
		<view>
			<button class="btn" @tap="logOut">注销</button>
		</view>
	</view>
</template>

<script>
export default {
	methods:{
		logOut(){
			uni.removeStorageSync('token')
			uni.reLaunch({
				url: '/pages/index/index'
			})
		},
		changeUser(){
			uni.navigateTo({
				url: '/pages/login/login'
			})
		},
		managerOrder(){
			uni.navigateTo({
				url: '/pages/my/order/order'
			})
		},
    managerGood(){
      uni.navigateTo({
        url: '/pages/my/goods/goods'
      })
    },
	managerShop(){
		uni.navigateTo({
		  url: '/pages/my/shop/shop'
		})
	},
		bindPrint(){
			uni.navigateTo({
				url: '/pages/my/printer/printer'
			})
		},
		staticInfo(){
			uni.navigateTo({
				url: '/pages/my/staticinfo/staticinfo'
			})
		},
		staticHisInfo(){
			uni.navigateTo({
				url: '/pages/my/staticinfo/staticHisinfo'
			})
		}
	}
}
</script>

<style  lang="scss">
	.btn{
		font-size: 50rpx;
		border-radius: 20rpx;
		margin: 0;
		//background: linear-gradient(to right, rgb(58 132 64 / 70%), rgb(116 177 112));
		background:linear-gradient(to right, rgba(58,132,64,0.7), rgba(116,177,112,0.6));
		margin-bottom: 25rpx;

	}
	.container{
		width: 70%;
		margin: -80rpx auto;
		display: flex;
		flex-direction:column;
		justify-content: center;
	}

</style>